import { FormSchema } from '/@/components/Table';
export const schemas: FormSchema[] = [
  {
    field: 'internalName',
    component: 'Select',
    label: '节点',
    required: true,
    colProps: {
      span: 22,
    },
  },
  {
    field: 'userRealNames',
    component: 'SelectUserInput',
    label: '用户',
    required: true,
    componentProps: ({ schema, tableAction, formActionType, formModel }) => {
      return {
        type: 1,
        onChange: (value, record) => {
          console.log('value,e', value, record);
          formModel['users'] = record.dataRef.userNames || '';
          console.log({ schema, tableAction, formActionType, formModel });
        },
      };
    },
    colProps: {
      span: 22,
    },
  },
  {
    field: 'users',
    component: 'Input',
    label: 'users',
    colProps: {
      span: 22,
    },
    show: false,
  },
];
